package com.rabbiter.oes.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rabbiter.oes.dto.ScoreDTO;
import com.rabbiter.oes.entity.Score;

import java.util.List;
import java.util.Map;

public interface ScoreService {
    int add(ScoreDTO score);

    List<Score> findAll();

    IPage<Score> findByStudentId(Page page, Integer studentId);

    List<Score> findById(Integer studentId);

    List<Score> findByExamCode(Integer examCode);

    Map<String,Object> scoresHistory(Integer scoreId);

}
